package com.project.mapper;

import com.project.bean.PurchaseProductBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IPurChaseProductMapper {
    /**
     * 按照采购id删除采购商品明细
     * @param purchaseId 采购id
     */
    public void delInfoByPurchaseId(int purchaseId);

    /**
     * 按id添加订单明细
     * @param purchaseId 订单id
     * @param infoList 明细集合
     */
    public void addInfo(@Param("purchaseId") int purchaseId, @Param("infoList") List<PurchaseProductBean> infoList);
}
